﻿namespace Cos.Module.Blog.NHibernate.Test
{
    using System;

    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class BlogCultureDataModelFixture : BlogFixtureBase
    {
        [Test]
        public void CanMapBlogCultureDataModel()
        {
            new PersistenceSpecification<BlogCultureDataModel>(Session)
                .CheckProperty(x => x.LastModified, new DateTime(2010, 1, 1))
                .CheckProperty(x => x.Title, "title test")
                .CheckProperty(x => x.Text, "text test")
                //.CheckReference(x => x.BlogId, this.Blog.Id)
               .CheckProperty(x => x.CultureCode, "Fr-CA")
                .VerifyTheMappings();

        }
    }
}
